import { post } from "../../../utils/request";

// 推送规则新增
const pushRuleConfAdd = data => post("/push/pushRuleConfAdd", data);
// 推送规则修改
const pushRuleConfMod = data => post("/push/pushRuleConfMod", data);
// 推送规则删除
const pushRuleConfDel = data => post("/push/pushRuleConfDel", data);
// 推送规则查询
const pushRuleConfQuery = data => post("/push/pushRuleConfQuery", data);
// 推送规则状态修改
const pushRuleStatusMod = data => post("/push/pushRuleStatusMod", data);
// 推送规则参数查询
const queryMessageParameter = data => post("/push/queryMessageParameter", data);
// 获取推送场景下拉框
const getSceneList = () => post("/push/getPushSceneName");
// 获取推送应用下拉框
const getPushApp = () => post("/push/getPushApp");
// 获取触发动作下拉框
const getTrigger = appId => post("/push/getTrigger", { appId: String(appId) });

export default {
  pushRuleConfAdd,
  pushRuleConfMod,
  pushRuleConfDel,
  pushRuleConfQuery,
  pushRuleStatusMod,
  queryMessageParameter,
  getSceneList,
  getPushApp,
  getTrigger
};
